@extends('web.frame_layout')
<?php $parent_menu = "财务中心"; $menu_selected = "消费记录";?>
<link rel="stylesheet" href="{{asset('web/css/withdrawal-record.css')}}">
@section('content')
    <div class="m-right-nr">
        <div>
            <h2><span>{{$menu_selected}}</span></h2>
        </div>
        <div class="m-txList">
            <div class="m-txList-title">
                <form action="{{route('web.shopping')}}" action ="get" id="txjl_search">
                    <select name="type" >
                        <option value="1" selected>编号搜索</option>
                        <option value="2">用户名搜索</option>
                    </select>
                    <div>
                        <input type="text" name="search" placeholder="请输入编号进行精准查询">
                        <button>搜索</button>
                    </div>
                </form>
            </div>
            <div class="table-responsive">
                <table class="table">
                    <tr>
                        <th>编号</th>
                        <th>钱包</th>
                        <th>类型</th>
                        <th>消费金额</th>
                        <th>备注</th>
                        <th>时间</th>
                    </tr>
                    @foreach($logs as $log)
                        <tr>
                            <td>{{$log->no}}</td>
                            <td>
                                {{uWalletStr($log->wallet)}}
                            </td>
                            <td>
                                @if($log->type == 0)
                                    增加
                                @elseif($log->type == 1)
                                    消费
                                @endif
                            </td>
                            <td>{{$log->money}}</td>
                            <td>{{$log->intro}}</td>
                            <td>{{date("Y-m-d H:i:s",$log->time)}}</td>
                        </tr>
                    @endforeach

                </table>
                @include('web.coms.fenye')
            </div>
        </div>
    </div>
@endsection

@section('footer')
@endsection